﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

// Directive for the ViewModel.
using ToDoList.Model;

namespace ToDoList
{
    public partial class MainPage : PhoneApplicationPage
    {
      //  private const string strConnectionString = @"isostore:/Todolist.sdf"; 


        // Constructor
        public MainPage()
        {
            InitializeComponent();

            // Set the page DataContext property to the ViewModel.
            this.DataContext = App.ViewModel;
          
        }

        private void homeToDoItemsListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {

        }

        private void deleteTaskButton_Click(object sender, RoutedEventArgs e)
        {

        }

        private void newTaskAppBarButton_Click(object sender, EventArgs e)
        {
            NavigationService.Navigate(new Uri("/NewTaskPage.xaml", UriKind.Relative));

        }

        //private void TextBox_TextChanged(object sender, TextChangedEventArgs e)
        //{

        //}

        //private void button2_Click(object sender, RoutedEventArgs e)
        //{
        //    NavigationService.Navigate(new Uri("/registration.xaml", UriKind.Relative));
        //}

        //private void button1_Click(object sender, RoutedEventArgs e)
        //{

        //}
    }
}